﻿// See https://aka.ms/new-console-template for more information
using System;
public class Projest
{
    public static void Main(string[] args)
    {
        int[] array = new int[100];
        for (int i = 0; i < array.Length; i++)
        {
            array[i] = 1;
        }
        for (int i = 2; i < array.Length; i++)
        {
            for(int j = i+1; j < array.Length; j++)
            {
                if (array[j] == 1)
                    if (j % i == 0)
                        array[j] = 0;
            }
        }
        for(int i = 0; i < array.Length; i++)
        {
            if (array[i] == 1)
                Console.Write(i + " ");
        }
    }
}
